package com.fhz.a2102shopjava.ui.details;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import com.fhz.a2102shopjava.callback.ApiResponse;
import com.fhz.a2102shopjava.entity.Orders;
import com.fhz.a2102shopjava.entity.ShoppingCart;

import java.util.List;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;

/**
 * 时间:2023/8/16
 *
 * @author Mr.Feng
 * 简述: TODO
 */
@HiltViewModel
public class DetailsViewModel extends ViewModel{

    @Inject
    public DetailsViewModel() {
    }

    @Inject
    DetailsRepository mDetailsRepository;


    public LiveData<ApiResponse<List<ShoppingCart>>> addCart(ShoppingCart cart){
        return mDetailsRepository.addCart(cart);
    }


}   
